/**
 * 	write on 2005-10-26 23:58:46.
 */
package org.nanhill.xmlro.gsp;

import static org.nanhill.commons.lang.StringConstants.GT;
import static org.nanhill.commons.lang.StringConstants.LT;
import static org.nanhill.commons.xml.XmlConstants.LTS;

import org.nanhill.xmlro.gsp.packet.GspPacket;

/**
 * @author alin
 * 
 */
public class GspOutputV2 extends GspOutput {

	public GspOutputV2(GspPacket obj, StringBuilder builder) {
		super(obj, builder);
	}

	public GspOutputV2(GspPacket obj) {
		super(obj);
	}

	public GspOutputV2() {
		super();
	};

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.nanhill.protocol.gsp.io.GspOutput#writeMapMemberStart(java.lang.String)
	 */
	public void writeMapMemberBegin(String key) {
		this.print(LT);
		this.print(key);
		this.print(GT);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.nanhill.protocol.gsp.io.GspOutput#writeMapMemberEnd()
	 */
	public void writeMapMemberEnd(String key) {
		this.print(LTS);
		this.print(key);
		this.print(GT);
	}

}
